package com.fuqi.android.zhongcai.business.shuig.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.business.shuig.request.result.CreateOrderResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  下订单接口
* */


public class CreateOrderApi extends AbsRequest<CreateOrderApi.CreateOrderParams, CreateOrderResult> {

    public CreateOrderApi(CreateOrderParams createOrderParams, Listener<CreateOrderResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getCreateOrderUrl(), createOrderParams, listener, errorListener, CreateOrderResult.class);
    }

    public static class CreateOrderParams extends BaseParams {

        public CreateOrderParams(String CREATE_TYPE, String CUSTOMER_ID, String ORDER_COMEFROM, String SALSE_NAME
                , String OWNER_NAME, String OWNER_PHONE, String ORDER_TYPE, String CONTACT_NAME, String CONTACT_PHONE
                , String HOUSE_TYPE, String INSTALL_CONTENT, String INSTALL_DATE, String ADDR_AREA, String ADDR_DETAIL
                , String PRODUCT_TYPE, String PAY_TYPE, String REMARK, String CREATE_BY) {

            put("CREATE_TYPE", CREATE_TYPE);
            put("CUSTOMER_ID", CUSTOMER_ID);
            put("ORDER_COMEFROM", ORDER_COMEFROM);
            put("SALSE_NAME", SALSE_NAME);
            put("OWNER_NAME", OWNER_NAME);
            put("OWNER_PHONE", OWNER_PHONE);
            put("ORDER_TYPE", ORDER_TYPE);
            put("CONTACT_NAME", CONTACT_NAME);
            put("CONTACT_PHONE", CONTACT_PHONE);
            put("HOUSE_TYPE", HOUSE_TYPE);
            put("INSTALL_CONTENT", INSTALL_CONTENT);
            put("INSTALL_DATE", INSTALL_DATE);
            put("ADDR_AREA", ADDR_AREA);
            put("ADDR_DETAIL", ADDR_DETAIL);
            put("PRODUCT_TYPE", PRODUCT_TYPE);
            put("PAY_TYPE", PAY_TYPE);
            put("REMARK", REMARK);
            put("CREATE_BY", CREATE_BY);
        }
    }


}

/*
*
*
字段名称

类型

备注

ORDER_COMEFROM

Varchar

订单来源（APP传“个人”）

ORDER_TYPE

Varchar

订单类型：

水管、地暖（见数据字典）

CONTACT_NAME

Varchar

联系人姓名

CONTACT_PHONE

Varchar

联系电话

HOUSE_TYPE

Varchar

户型

INSTALL_CONTENT

Varchar

安装内容

INSTALL_DATE

Varchar

安装日期

ADDR_AREA

Varchar

所在地区

ADDR_DETAIL

Varchar

详细地址

PRODUCT_TYPE

Varchar

产品类型（套餐1…黄金系列等）

PAY_TYPE

Varchar

结款方式：详情见结款方式表

REMARK

Varchar

下单备注

CREATE_BY

Varchar

订单创建者ID


*
* */
